package fun.qu_an.minecraft.fabric.fzbbl.event;

import net.fabricmc.fabric.api.event.Event;
import net.fabricmc.fabric.api.event.EventFactory;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.item.ItemStack;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;

public interface PlayerPlacedCallback {
	Event<PlayerPlacedCallback> EVENT = EventFactory.createArrayBacked(PlayerPlacedCallback.class,
		listeners -> (player, world, pos, stack) -> {
			for (PlayerPlacedCallback listener : listeners) {
				listener.interact(player, world, pos, stack);
			}
		});

	void interact(PlayerEntity player, World world, BlockPos pos, ItemStack stack);
}
